import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    component: () => import(/* webpackChunkName: "about" */ '../views/MainView.vue'),
    children: [{
      path: 'welcome',
      component: () => import(/* webpackChunkName: "about" */ '../views/main/WelcomeView.vue')
    },{
      path: 'about',
      component: () => import(/* webpackChunkName: "about" */ '../views/main/AboutView.vue')
    },{
      path: 'business/',
      children: [{
        path: 'sk_token',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/business/sk-token.vue')
      },{
        path: 'confirm_order',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/business/confirm-order.vue')
      },{
        path: 'daily-train',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/business/daily-train.vue')
      },{
        path: 'daily-train-station',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/business/daily-train-station.vue')
      },{
        path: 'daily-train-carriage',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/business/daily-train-carriage.vue')
      },{
        path: 'daily-train-seat',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/business/daily-train-seat.vue')
      },{
        path: 'daily-train-ticket',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/business/daily-train-ticket.vue')
      }]
    },{
      path: 'base/',
      children: [{
        path: 'station',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/business/station.vue')
      },{
        path: 'train',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/business/train.vue')
      },{
        path: 'train-station',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/business/train-station.vue')
      },{
        path: 'train-carriage',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/business/train-carriage.vue')
      },{
        path: 'train-seat',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/business/train-seat.vue')
      }]
    },{
      path: 'batch/',
      children: [{
        path: 'job',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/batch/job.vue')
      }]
    },{
      path: 'member/',
      children: [{
        path: 'ticket',
        component: () => import(/* webpackChunkName: "about" */ '../views/main/member/ticket.vue')
      }]
    }]
  },
  {
    path: '',
    redirect: '/welcome'
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
